CASE DEFAULT

Use this command in combination with SELECT, ENDCASE and ENDSELECT to create a select statement.

  Syntax
CASE DEFAULT:
  Parameters
:
Value
Enter the appropriate value here.

  Returns

This command does not return a value.

  Description

A case default statement holds code below it in the event that no case statement catches the value of the variable. The case default statement must go at the end of a sequence of case statement, but above the ENDSELECT statement.

  Example Code
SELECT var
CASE DEFAULT:
PRINT "default"
ENDCASE
ENDSELECT
WAIT KEY
  See also

CORE Commands Menu
Index